package com.jjvu.news.domain;

import com.jjvu.news.dao.Info;
import com.jjvu.news.dao.MaxMenu;
import com.jjvu.news.dao.MinMenu;

import java.util.List;

public interface MenuDao {
    List<MaxMenu> findMaxMenuAll();

    MaxMenu findMaxMenuBy(MaxMenu maxMenu);

    boolean updateMaxMenu(MaxMenu maxMenu);

    boolean deleteMaxMenu(Integer max_id);

    boolean addMaxMenu(MaxMenu maxMenu);

    List<MaxMenu> findMinMenuByMaxName(Integer max_id);

    MinMenu findMinMenuById(Integer min_id);

    boolean updateMinMenu(MinMenu minMenu);

    boolean deleteMinMenu(Integer min_id);

    boolean addMinMenu(MinMenu minMenu);

    List<Info> findInfoByMinId(Integer min_id);

    boolean deleteInfoByMinId(Integer min_id);

    List<Info> findInfoByMaxId(Integer max_id);

    boolean deleteInfoByMaxId(Integer max_id);

    List<MinMenu> findMinMenuByMaxId(Integer max_id);

    boolean deleteMinMenuByMaxId(Integer max_id);
}
